text: Make editable API irreversible
authorMatthias Clasen <mclasen@redhat.com>
Tue, 28 Feb 2023 00:43:11 +0000 (19:43 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 28 Feb 2023 00:43:11 +0000 (19:43 -0500)
commit73ba043b02d0db4e0059d4fafad5efad1ace9ff5
tree2ea529c8737b17d237f7f945c06cd7a8cf00ac19
parent61e4eadbce4e1c56a831fee378e49a45f1f92782
text: Make editable API irreversible

Programmatic changes to the entry contents should
not become part of the undo history.

Sadly, the editable implementations are also used
in the code paths that we use for user-initiated changes,
so we have to be careful to only set them as
irreversible if we are not already in a user action.

Fixes: #5622
gtk/gtktext.c